import request from '@/utils/request'

// 查询信访认领列表
export function totallist(query) {
  return request({
    url: '/homepage/totaldata/totallist',
    method: 'get',
    params: query
  })
}

// 查询信访调度列表
export function totallistDispatch(query) {
  return request({
    url: '/homepage/totaldata/totallistDispatch',
    method: 'get',
    params: query
  })
}

// 查询信访调度列表
export function totallistUnresolve(query) {
  return request({
    url: '/homepage/totaldata/totallistUnresolve',
    method: 'get',
    params: query
  })
}

// 热线地市分类统计
export function totalcitycategorylist(query) {
  return request({
    url: '/letter/report/hotline/city/category/summary',
    method: 'get',
    params: query
  })
}

// 热线地市月份统计
export function totalcitymonthlist(query) {
  return request({
    url: '/letter/report/hotline/year/city/summary',
    method: 'get',
    params: query
  })
}

// 热线月份分类统计
export function totalmonthcategorylist(query) {
  return request({
    url: '/letter/report/hotline/year/category/summary',
    method: 'get',
    params: query
  })
}

export function getLineChart(query) {
  return request({
    url: '/letter/report/homepage/linechart/summary',
    method: 'get',
    params: query
  })
}

export function getBarChart(query) {
  return request({
    url: '/letter/report/homepage/barchart/summary',
    method: 'get',
    params: query
  })
}

// 地市分类统计
export function recordtotalcitycategorylist(query) {
  return request({
    url: '/letter/report/record/city/category/summary',
    method: 'get',
    params: query
  })
}

// 地市月份统计
export function recordtotalcitymonthlist(query) {
  return request({
    url: '/letter/report/record/year/city/summary',
    method: 'get',
    params: query
  })
}

// 月份分类统计
export function recordtotalmonthcategorylist(query) {
  return request({
    url: '/letter/report/record/year/category/summary',
    method: 'get',
    params: query
  })
}

// 地市分类统计
export function messagetotalcitycategorylist(query) {
  return request({
    url: '/letter/report/message/city/category/summary',
    method: 'get',
    params: query
  })
}

// 地市月份统计
export function messagetotalcitymonthlist(query) {
  return request({
    url: '/letter/report/message/year/city/summary',
    method: 'get',
    params: query
  })
}

// 月份分类统计
export function messagetotalmonthcategorylist(query) {
  return request({
    url: '/letter/report/message/year/category/summary',
    method: 'get',
    params: query
  })
}

// 月份分类统计
export function reporttotalmonthcategorylist(query) {
  return request({
    url: '/letter/report/year/category/summary',
    method: 'get',
    params: query
  })
}